package com.yjt.auth.common.bean.domain.user;

import java.io.Serializable;

public abstract class AbstractMngUser implements Serializable {

	private static final long serialVersionUID = 1L;

	private String id;
	private String createDate;
	private String createTime;
	private String name;
	private boolean validate = true;
	private String password;
	private String admin;
	
	public AbstractMngUser() {}
	
	public AbstractMngUser(String id, String createDate, String createTime,
			String name, boolean validate, String password, String admin) {
		super();
		this.id = id;
		this.createDate = createDate;
		this.createTime = createTime;
		this.name = name;
		this.validate = validate;
		this.password = password;
		this.admin = admin;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AbstractMngUser other = (AbstractMngUser) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	public String getAdmin() {
		return admin;
	}
	public String getCreateDate() {
		return createDate;
	}
	public String getCreateTime() {
		return createTime;
	}
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getPassword() {
		return password;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	public boolean isValidate() {
		return validate;
	}
	public void setAdmin(String admin) {
		this.admin = admin;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setValidate(boolean validate) {
		this.validate = validate;
	}
	
}
